package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HotelFacilitiesRoomsMapper;
import com.ruoyi.system.domain.HotelFacilitiesRooms;
import com.ruoyi.system.service.IHotelFacilitiesRoomsService;

/**
 * 房间设施关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-10
 */
@Service
public class HotelFacilitiesRoomsServiceImpl implements IHotelFacilitiesRoomsService 
{
    @Autowired
    private HotelFacilitiesRoomsMapper hotelFacilitiesRoomsMapper;

    /**
     * 查询房间设施关联
     * 
     * @param id 房间设施关联主键
     * @return 房间设施关联
     */
    @Override
    public HotelFacilitiesRooms selectHotelFacilitiesRoomsById(Long id)
    {
        return hotelFacilitiesRoomsMapper.selectHotelFacilitiesRoomsById(id);
    }

    /**
     * 查询房间设施关联列表
     * 
     * @param hotelFacilitiesRooms 房间设施关联
     * @return 房间设施关联
     */
    @Override
    public List<HotelFacilitiesRooms> selectHotelFacilitiesRoomsList(HotelFacilitiesRooms hotelFacilitiesRooms)
    {
        return hotelFacilitiesRoomsMapper.selectHotelFacilitiesRoomsList(hotelFacilitiesRooms);
    }

    /**
     * 新增房间设施关联
     * 
     * @param hotelFacilitiesRooms 房间设施关联
     * @return 结果
     */
    @Override
    public int insertHotelFacilitiesRooms(HotelFacilitiesRooms hotelFacilitiesRooms)
    {
        return hotelFacilitiesRoomsMapper.insertHotelFacilitiesRooms(hotelFacilitiesRooms);
    }

    /**
     * 修改房间设施关联
     * 
     * @param hotelFacilitiesRooms 房间设施关联
     * @return 结果
     */
    @Override
    public int updateHotelFacilitiesRooms(HotelFacilitiesRooms hotelFacilitiesRooms)
    {
        return hotelFacilitiesRoomsMapper.updateHotelFacilitiesRooms(hotelFacilitiesRooms);
    }

    /**
     * 批量删除房间设施关联
     * 
     * @param ids 需要删除的房间设施关联主键
     * @return 结果
     */
    @Override
    public int deleteHotelFacilitiesRoomsByIds(Long[] ids)
    {
        return hotelFacilitiesRoomsMapper.deleteHotelFacilitiesRoomsByIds(ids);
    }

    /**
     * 删除房间设施关联信息
     * 
     * @param id 房间设施关联主键
     * @return 结果
     */
    @Override
    public int deleteHotelFacilitiesRoomsById(Long id)
    {
        return hotelFacilitiesRoomsMapper.deleteHotelFacilitiesRoomsById(id);
    }
}
